The following group codes apply to text
entities. In addition to the group codes described here, see
Common Group Codes for Entities.
For information about abbreviations and formatting used in this
table, see Formatting Conventions in This Reference.
Text group codes
|
Group code
|
Description
|
100
|
Subclass marker (AcDbText)
|
39
|
Thickness (optional; default = 0)
|
10
|
First alignment point (in OCS) DXF: X value; APP: 3D point
|
20, 30
|
DXF: Y and Z values of
first alignment point (in OCS)
|
40
|
Text height
|
1
|
Default value (the string itself)
|
50
|
Text rotation (optional; default = 0)
|
41
|
Relative X scale factor—width
(optional; default = 1)
This value is also adjusted when fit-type text
is used
|
51
|
Oblique angle (optional; default = 0)
|
7
|
Text style name (optional, default = STANDARD)
|
71
|
Text generation flags (optional, default = 0): 2 = Text is backward (mirrored in X) 4 = Text is upside down (mirrored in Y)
|
72
|
Horizontal text justification type (optional,
default = 0) integer codes (not bit-coded)
0 = Left; 1= Center; 2 = Right 3 = Aligned (if vertical alignment = 0) 4 = Middle (if vertical alignment = 0) 5 = Fit (if vertical alignment = 0) See the Group 72 and 73 integer codes table
for clarification
|
11
|
Second alignment point (in OCS) (optional) DXF: X value; APP: 3D point
This value is meaningful only if the value of
a 72 or 73 group is nonzero (if the justification is anything other
than baseline/left)
|
21, 31
|
DXF: Y and Z values of
second alignment point (in OCS) (optional)
|
210
|
Extrusion direction (optional; default = 0,
0, 1)
DXF: X value; APP:
3D vector
|
220, 230
|
DXF: Y and Z values of
extrusion direction (optional)
|
100
|
Subclass marker (AcDbText)
|
73
|
Vertical text justification type (optional,
default = 0): integer codes (not bit-coded):
0 = Baseline; 1 = Bottom; 2 = Middle; 3 = Top See the Group 72 and 73 integer codes table
for clarification
|
The following table describes
the group codes 72 (horizontal alignment) and 73 (vertical alignment)
in greater detail.
Group 72 and 73 integer codes
|
Group 73
|
Group 72 0
|
1
|
2
|
3
|
4
|
5
|
3 (top)
|
TLeft
|
TCenter
|
TRight
|
|
|
|
2 (middle)
|
MLeft
|
MCenter
|
MRight
|
|
|
|
1 (bottom)
|
BLeft
|
BCenter
|
BRight
|
|
|
|
0 (baseline)
|
Left
|
Center
|
Right
|
Aligned
|
Middle
|
Fit
|
If group 72 and/or 73
values are nonzero then the first alignment point values are ignored
and AutoCAD calculates new values based on the second alignment
point and the length and height of the text string itself (after applying
the text style). If the 72 and 73 values are zero or missing, then
the second alignment point is meaningless.